<template>
	<view class="receive">
		<view class="receives">
			<!-- 信息详情 -->
			<view class="enterprise_top">
				<text class="enterprise_bg" />
				<u-text text="收货人信息" size="32rpx" bold />
			</view>
			<u-gap height="34rpx" />
			<view class="list flex_wrap flex_column">
				<u-row>
					<u-col span="3"><u--text text="姓名" color="#333" size="26rpx" selectable bold/></u-col>
					<u-col span="8">
						<u--text :text="recordList.testingName" color="#333" size="26rpx" />
					</u-col>
				</u-row>
				<u-gap height="24rpx" />
				<u-row>
					<u-col span="3"><u--text text="手机号" color="#333" size="26rpx" selectable bold/></u-col>
					<u-col span="8">
						<u--text :text="recordList.testingMobile" color="#333" size="26rpx" />
					</u-col>
				</u-row>
				<u-gap height="24rpx" />
				<u-row>
					<u-col span="3"><u--text text="所在地址" color="#333" size="26rpx" selectable bold/></u-col>
					<u-col span="8"><u--text :text="recordList.testingRegion || '--'" color="#333" size="26rpx" /></u-col>
				</u-row>
				<u-gap height="24rpx" />
				<u-row>
					<u-col span="3"><u--text text="详细地址" color="#333" size="26rpx" selectable bold/></u-col>
					<u-col span="8"><u--text :text="recordList.testingAddress || '--'" color="#333" size="26rpx" /></u-col>
				</u-row>
			</view>
		</view>
	</view>
</template>

<script>
	import { getRocordId } from '@/api/receive';
	export default {
		data() {
			return {
				recordList:{}
			}
		},
		onLoad(options) {
			this.id = options.id;
			this.getRecordDetail(this.id);
		},
		methods: {
			getRecordDetail(id){
				getRocordId(id)
					.then(res => {
						this.recordList = res.data;
						this.couponNum = res.data.couponNum
					});
			},
		}
	}
</script>

<style lang="scss">
	.receive{
		background: #FFFFFF;
		width: 100%;
		height: 100vh;
		color: #333333;
	}
	.receives{
		padding: 36rpx 28rpx 0;
	}
	.enterprise_top {
		display: flex;
		height: 44rpx;
		align-items: center;
	}
	
	.enterprise_bg {
		display: block;
		width: 8rpx;
		height: 28rpx;
		background: #588BF3;
		margin-right: 16rpx;
	}
</style>
